package pl.taskman.testing;

/**
 * @author NiTh4r0
 * 
 */
public class Manager
{
	private static LoginWindowTest	lwt				= null;
	private static MainWindowTest	mwt				= null;
	private static ActionHandler	actionListener	= null;

	public Manager()
	{
	}

	public static void initMWT()
	{
		if (actionListener == null) actionListener = new ActionHandler();
		if (mwt == null) mwt = new MainWindowTest();
	}

	public static void initLWT()
	{
		if (actionListener == null) actionListener = new ActionHandler();
		if (lwt == null) lwt = new LoginWindowTest();
	}

	public static MainWindowTest getMWT()
	{
		return mwt;
	}

	public static LoginWindowTest getLWT()
	{
		return lwt;
	}

	public static ActionHandler getActionListener()
	{
		return actionListener;
	}
}
